home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Libraries / SAT 2.1.2 / SAT C Lib / SAT.h next >
Encoding:
Text File  |  1994-07-02  |  6.9 KB  |  61 lines  |  [TEXT/KAHL]

  1. OSErr CreateOffScreen (Rect*, short, CTabHandle, CGrafPtr*, GDHandle*); /*From Principia Offscreen*/
  2.     pascal void DisposeOffScreen (CGrafPtr, GDHandle);/*From Principia Offscreen*/
  3. /* New procedures */
  4.     pascal void SetPortMask (FacePtr);
  5.     pascal void SetPortFace (FacePtr);
  6.     pascal void SetPortFace2 (FacePtr);
  7.     pascal FacePtr NewFace (Rect*);
  8.     pascal void ChangedFace (FacePtr);
  9.     pascal void SATSetStrings (Str255, Str255, Str255, Str255, Str255, Str255, Str255, Str255);
  10.     pascal Boolean TrapAvailable (short);
  11.     pascal CIconHandle SATGetCicn (short);
  12.     pascal void SATPlotCicn (CIconHandle, GrafPtr, GDHandle, Rect*);
  13.     pascal void SATDisposeCicn (CIconHandle);
  14.  
  15. /*Utilities*/
  16.     pascal void DrawInt (short);
  17.     pascal void DrawLong (long);
  18.     pascal short Rand (short);
  19.     pascal short Rand10();
  20.     pascal short Rand100();
  21.     pascal void ReportStr (Str255);
  22.     pascal Boolean QuestionStr(Str255);
  23.     pascal void CheckNoMem (Ptr); /*If the Ptr is nil, out of memory emergency exit*/
  24.     pascal short SATFakeAlert (Str255, Str255, Str255, Str255, short, short, short, Str255, Str255, Str255);
  25.     pascal void SetMouse (Point);
  26. /* Pattern utilities */
  27.     pascal void SATPenPat (SATPatHandle);
  28.     pascal void SATBackPat (SATPatHandle);
  29.     pascal SATPatHandle SATGetPat (short);
  30.     pascal void SATDisposePat (SATPatHandle);
  31. /* Menu bar utilities */
  32.     pascal void ShowMBar();
  33.     pascal void HideMBar(WindowPtr);
  34. /*Sound*/
  35.     pascal void InitSATSound();            /* No longer necessary */
  36.     pascal void SATSoundPlay (Handle, short, Boolean);    /* Play sounds with priority handling */
  37.     pascal void SATSoundShutup();        /*Silence, dispose of sound channel*/
  38.     pascal void SATSoundEvents();        /* Call this once in a while when not calling RunSAT often */
  39.     pascal Boolean SATSoundDone();    /* Any sound going on?*/
  40.     pascal Handle SATGetSound (short);
  41.     pascal Handle SATGetNamedSound (Str255);
  42.     pascal void SATDisposeSound (Handle);
  43.     pascal void SATSoundOn();
  44.     pascal void SATSoundOff();
  45. /* Multi-channel sound routines */
  46.     pascal short SATSoundInitChannels (short);
  47.     pascal Boolean SATSoundDoneChannel (short);
  48.     pascal void SATSoundPlayChannel (Handle, short);
  49.     pascal void SATSoundReserveChannel (short, Boolean);
  50.     pascal void SATSoundShutupChannel (short);
  51.     pascal void SATPreloadChannels();
  52. /*Experimental, likely to be renamed/removed/changed:*/
  53.     pascal void SATSoundPlay2 (Handle, short, Boolean,Boolean);
  54.     pascal void SATSoundPlayEasy (Handle, Boolean);
  55.  
  56. // Will it work with C++ if I do like this?
  57. #ifdef _cplusplus
  58. }
  59. #endif
  60.  
  61.